package org.dreamwork.jasmine2.restful.client.gui.ui;

import org.dreamwork.jasmine2.restful.client.gui.util.IMessageHandler;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2014/12/11
 * Time: 19:10
 */
public class UIGlobal {
    private static IMessageHandler handler;

    public static void registerMessageHandler (IMessageHandler handler) {
        UIGlobal.handler = handler;
    }

    public static void setStatus (String status) {
        handler.setStatus (status);
    }

    public static void log (String message) {
        handler.log (message);
    }
}
